package com.fastgwt.shared.dto;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.sencha.gxt.widget.core.client.button.TextButton;

@Entity
@Table(name = "EMPLOYEE")
public class Employee implements java.io.Serializable {
	
	private static final long serialVersionUID = 7440297955003302414L;

	@Id
	@Column(name="employee_id")
	private long employeeId;
	
	@Column(name="employee_name", nullable = false, length=30)
	private String employeeName;
	
	@Column(name="employee_surname", nullable = false, length=30)
	private String employeeSurname;
	
	@Column(name="job", length=50)
	private String job;
	
	@Column(name="email", length=50)
	private String email;
	
	public Employee() {
	}

	public Employee(int employeeId) {
		this.employeeId = employeeId;		
	}

	public Employee(long employeeId, String employeeName, String employeeSurname,
			String job) {
		this.employeeId = employeeId;
		this.employeeName = employeeName;
		this.employeeSurname = employeeSurname;
		this.job = job;
	}

	public long getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(long employeeId) {
		this.employeeId = employeeId;
	}

	public String getEmployeeName() {
		return employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	public String getEmployeeSurname() {
		return employeeSurname;
	}

	public void setEmployeeSurname(String employeeSurname) {
		this.employeeSurname = employeeSurname;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public String toString() {
		return "Employee [employeeId=" + employeeId + ", employeeName="
				+ employeeName + ", employeeSurname=" + employeeSurname
				+ ", email=" + email + ", job=" + job  +"]";
	}
	
//	public TextButton getBtnSave(){
//		return null;
//	}
}